package appapi.Vo.record;

import appapi.entity.Zhongjiao.OnsitedetailDto;
import appapi.entity.app.OnsitedetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Value;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/06/05 10:34
 */
@ApiModel(value = "添加巡检明细请求对象")
@Data
public class OnSiteDetailVo {
    @ApiModelProperty(value = "详情记录id(新增不带)")
    private Long onsiteRecId;

    @ApiModelProperty(value = "记录id(新增不带)")
    private Long onsiteId;

    @ApiModelProperty(value = "检测项目")
    private String onsiteItem;

    @ApiModelProperty(value = "检测结果:0正常 1异常")
    private Integer onsiteResult;

    @ApiModelProperty(value = "巡检要求")
    private String onsiteDesc;

    @ApiModelProperty(value = "异常处理状态")
    private Integer auditState;

    @ApiModelProperty(value = "图片地址数组")
    private List<String> imgUrlList;

    public OnsitedetailEntity vo2Entity() {
        OnsitedetailEntity entity = new OnsitedetailEntity();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}
